<?php if(empty($articles)){ ?>
<h3>No result</h3>
<?php }else{ ?>
<?php foreach($articles as $value) { ?>
<h2><a href="/index/article/post?id=<?php echo $value['id']; ?>"><?php echo $value['title']; ?></a></h2>
<div class="search-description"><?php echo $value['description']; ?></div>
<div class="search-article-info">
  <span><?php echo $value['author']; ?></span>
  <span><?php echo $value['create_time']; ?></span>
</div>
<?php }} ?>
